<html xmlns:o="urn:schemas-microsoft-com:office:office" 
 xmlns:x="urn:schemas-microsoft-com:office:excel" 
 xmlns="http://www.w3.org/TR/REC-html40"> 
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 <html> 
     <head> 
        <meta http-equiv="Content-type" content="text/html;charset=UTF-8" /> 
         <style id="Classeur1_16681_Styles"></style> 
     </head> 
     <body> 
<div id="Classeur1_16681" align=center x:publishsource="Excel"> 
<table x:str border=1 cellpadding=0 cellspacing=0 width="100%" style="border-collapse: collapse;border 1px #000 solid"> 
    <thead>
        <tr>
            <th>订单时间</th>
            <th>单号</th>
            <th>交易状态</th>
            <th>订单金额</th>
            <th>
                <table border=1 cellpadding=0 cellspacing=0 width="100%" style="border-collapse: collapse;border 1px #000 solid">
                    <tr height="80">
                        <td>产品</td>
                        <td width="80">价格</td>
                        <td width="60">数量</td>
                    </tr>
                </table>
            </th>
            <th>收货人</th>
            <th>联系电话</th>            
            <th>收货地址</th>
            <th>发货时间</th>
            <th>物流公司</th>            
            <th>快递单号</th>
        </tr>
    </thead>
    {foreach $order as $order_no => $rs}
    <tbody>
        <tr>
            <td>{$rs.order_starttime}</td>
            <td>{$order_no}</td>
            <td>
                {if $rs.is_del ==1}已删除
                {else}
                    {if $rs.status == 1}
                        已完成
                    {else}
                        {if $rs.paid_at}{if $rs.express_status}已发货{else}待发货{/if}{else}待付款{/if}
                    {/if}
                {/if}
            </td>
            <td>￥{$rs.order_amount}</td>
            <td>
                <table border=1 cellpadding=0 cellspacing=0 width="100%" style="border-collapse: collapse;border 1px #000 solid">
                    {foreach $rs.item as $vo}
                     <tr height="80">
                        <td width="80"><img src="{$vo.img}" width="80" height="80"/></td>
                        <td>{$vo.name}</td>
                        <td width="80">{$vo.buy_price}</td>
                        <td width="60">{$vo.buy_nums}</td>
                    </tr>
                    {/foreach}
                </table>
            </td>
            <td>{$rs.express_name}</td>
            <td>{$rs.express_phone}</td>
            <td>{$rs.express_address}</td>
            <td>{if $rs.express_starttime}{$rs.express_starttime}{/if}</td>
            <td>{$rs.express_company}</td>
            <td>{$rs.express_no}</td>
        </tr>
    </tbody>
    {/foreach}
</table>
</div>
</body>
</html>